#ifndef __LOG_H__
#define __LOG_H__

enum {
	EMRG = 0,
	ALRT,
	CRIT,
	ERR,
	WARN,
	NOTI,
	INFO,
	DEBUG
};

void log_init(const char * file);
void logging(int level, const char * fmt, ...);

#define err(...) logging(ERR, ##__VA_ARGS__)
#define warn(...) logging(WARN, ##__VA_ARGS__)
#define info(...) logging(INFO, ##__VA_ARGS__)
#define debug(...) logging(DEBUG, ##__VA_ARGS__)

#endif //__LOG_H__
